package com.kerwin.entity.returnjson;


import com.github.pagehelper.Page;
import lombok.Data;

import java.util.List;
@Data
public class TableDate {
    /*这里是列表数据*/
    /*需要分页的*/
    private List list;
    private List list2;
    private Integer pageNum;
    private Integer pageSize;
    private Integer total;

    /*这里需要判断Page 子类转父类，给成员变量赋值*/
    /*所以引入page分页插件*/
    public TableDate(List list) {
        if(list instanceof Page){
           Page p=(Page)list;
        this.list = list;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.total = total;
        }else {
            this.list = list;
        }
    }


    public TableDate(List list, List list2) {
        this.list = list;
        this.list2 = list2;
    }




}
